package com.turing.user.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.turing.user.entity.Role;
import com.turing.user.entity.RoleUser;

import java.util.List;

/**
* @Description $!{table.comment} 服务类接口
* @Author livin
* @Date 2022-02-22
*/
public interface RoleUserService extends IService<RoleUser> {

    List<RoleUser> getUserRoles(Integer userId);

    List<Integer> getUserIdsByRoleId(Integer mainRoleId);

    List<Integer> getRoleIdsByUserId(Integer userId);

    boolean getRoleIdByUserId(Integer userId);
}
